package com.newcapec.news.service.impl;

import com.newcapec.news.dao.ChannelDao;
import com.newcapec.news.dao.impl.ChannelDaoImpl;
import com.newcapec.news.entity.Channel;
import com.newcapec.news.service.ChannelService;

import java.util.List;

/**
 * @Description:
 * @Author: fujun
 * @Date : 2022/3/31 8:40
 * @Version : 1.0
 * @company 新开普电子股份有限公司
 */
public class ChannelServiceImpl implements ChannelService {
    private ChannelDao channelDao=new ChannelDaoImpl();
    @Override
    public void insertChannel(Channel chnl) {
        channelDao.insertChannel(chnl);
    }

    @Override
    public void updateChannel(Channel chnl) {
        channelDao.updateChannel(chnl);
    }

    @Override
    public void deleteChannel(int id) {
        channelDao.deleteChannel(id);
    }

    @Override
    public List<Channel> queryChannel() {
        return channelDao.queryChannel();
    }

    @Override
    public Channel getChannel(int id) {
        return channelDao.getChannel(id);
    }

    @Override
    public List<Channel> queryChannel(int user_id) {
        return channelDao.queryChannel(user_id);
    }
}
